$wave = Date2Wav ( <Date>, [Prefix], [Language], [Accent], [Delay] )
Date to Wave converter
is used to announce the date in human voice.
Parameters
<Date> Any valid date. Supported formats are dd/mm/yyyy and yyyymmdd.
[Prefix]
Wave file name prefix. This parameter is optional. The default value is "SRE".
[Language] Language
to be used. Default parameter is "ENG_US".
[Accent]
The type of accent - FALSE to cease or TRUE to continue. Default value is FALSE.
[Delay]
Pause in milliseconds between 2 consecutive wave files. Default value is 0.
Return Value
Converted date
in human voice.
Remarks
- You can use
customized wave files with the artist's name as filename prefix. To do customized
recording, you have to follow some standard rules.
- Xtend IVR supports 3 different flavors of English
language. Hence the language parameters will change accordingly. To support
- Indian English, give "ENG_IN"
- American English, give "ENG_US" or "ENG" or "ENGLISH"
- British English, give "ENG_UK"
Example
1) $wave = Date2Wav ("01/01/2000")
Play $wave
$wave now contains SRE_First.wav SRE_Jan.wav SRE_2.wav SREthousand.wav
2) $x = "2/1/1999"
$wave = Date2Wav ($x)
Play $wave
$wave now contains SRE_2nd.wav SRE_Jan.wav SRE_19.wav SRE_99.wav
3) $wave = Date2Wav ("3/01/2001","SRE","ENG")
Play $wave
$wave now contains SRE_3rd.wav SRE_Jan.wav SRE_2.wav SRE_thousand.wav SRE1.wav
4) $wave = Date2Wav ("25/12/2000","SRE","ENG",TRUE,3)
Play $wave
$wave now contains SRE_25th.wav SRE_Dec.wav SRE_2.wav SREthousand.wav